package pattern18;

/**
 * p220
 * 桥接模式
 * @author wdl
 */
public class BridgePattern {
    public static void main(String[] args) {
        Abstraction ab=new RefinedAbstraction();
        ab.setImplementor(new ConcreteImplementorA());
        ab.operation();

        ab.setImplementor(new ConcreteImplementorB());
        ab.operation();
    }
}
